import request from '@/utils/request'
export function fetchList(params) {
    return request({
        url: '/video/list',
        method: 'get',
        params: params
    })
}
export function deleteVideo(uvid) {
    return request({
        url: '/video/delete/' + uvid,
        method: 'post'
    })
}

export function createVideo(data) {
    return request({
        url: '/video/create',
        method: 'post',
        data: data
    })
}

export function updateVideo(uvid, data) {
    return request({
        url: '/video/update/' + uvid,
        method: 'post',
        data: data
    })
}

export function updateStatus(params) {
    return request({
        url: '/video/update/verifyStatus',
        method: 'post',
        params: params
    })
}

export function getVideo(uvid) {
    return request({
        url: '/video/' + uvid,
        method: 'get',
    })
}

export function getCounts(params) {
    return request({
        url: '/video/counts',
        method: 'get',
        params: params
    })
}

export function changePartition(data) {
    return request({
        url: '/video/update/partition',
        method: 'post',
        data: data
    })
}